<?php 


require dirname(dirname(__FILE__)).'/class_online/wis.php';
require dirname(dirname(__FILE__)).'/class_online/conf.php';

$api = new WisApi(WisConf::AccessId,WisConf::AccessKey);



$method = $_REQUEST['method'];
if($method == "AllowDraw"){
	echo json_encode(array("Flag"=>100));
	exit();
}

$rst = $api->$method($_REQUEST);

echo json_encode($rst);